<template>
  <avue-crud :data="data"
             :option="option"></avue-crud>
</template>
<script>
export default {
  data () {
    return {
      data: [
        {
          ids: 1,
          name: '张三',
          sex: '男'
        }, {
          ids: 2,
          name: '李四',
          sex: '女'
        }
      ],
      option: {
        rowKey: 'ids',
        copyBtn: true,
        delBtn: false,
        column: [
          {
            label: '姓名',
            prop: 'name'
          }, {
            label: '性别',
            prop: 'sex'
          }
        ]
      },
    };
  }
}
</script>